package com.zareal.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wilson
 * @since 2022-09-28
 */
@TableName("t_storage")
public class Storage extends Model<Storage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("pruduct_id")
    private Long pruductId;
    private Long number;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPruductId() {
        return pruductId;
    }

    public void setPruductId(Long pruductId) {
        this.pruductId = pruductId;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Storage{" +
        ", id=" + id +
        ", pruductId=" + pruductId +
        ", number=" + number +
        "}";
    }
}
